<html>
<head>
	<meta charset="utf-8">
	<title>{$title}</title>
	{foreach $cssArr as $css}
	<link rel="stylesheet" href="{$css_path}{$css}">
	{/foreach}

	<script type="text/javascript" src="{$js_path}jquery-1.9.1.min.js">
	</script>
	<script type="text/javascript" src="{$js_path}common.js">
	</script>
	<script type="text/javascript" src="{$js_path}calendar/WdatePicker.js">
	</script>
</head>
<body>
	<!--遮罩层-->
	<div class="canva"></div>
	
	<div id="header">
		<div id="date">今天是&nbsp;{date("Y年m月d日", time())}</div>
		<center><div id="siteName">图书借阅系统</div></center>
		<div id="welcome">
			欢迎{if $userInfo['mid'] eq 1}管理员{/if} &nbsp;
			<em>{$userInfo['userName']}</em>
		</div>
	</div>
	<div id="left_bar">
		<ul id="left_bar_nav">
			<li>
				<a href="{$site_url}">
					&nbsp;&nbsp;&nbsp;&nbsp;==首页==
				</a>
			</li>
			{* 管理员侧边导航栏 *}
			{if $userInfo['mid'] eq 1}
			<li><<&nbsp;&nbsp;用户管理
				<ul class="nav_child">
					<li>
						<a href="{$site_url}admin/members_list.php">
							*用户列表
						</a>
					</li>
					<li>
						<a href="{$site_url}admin/member_add.php">
							*添加用户
						</a>
					</li>
					<li>
						<a href="{$site_url}admin/reset_member_pwd.php">*修改用户密码
						</a>
					</li>
				</ul>
			</li>
			<li><<&nbsp;&nbsp;书籍管理
				<ul class="nav_child">
					<li>
						<a href="{$site_url}admin/book_types_list.php">
							*所有分类
						</a>
					</li>
					<li>
						<a href="{$site_url}admin/overtime_books_list.php">
							*超期书籍
						</a>
					</li>
				</ul>
			</li>
			{/if}
			{* 普通用户侧边导航栏 *}
			{if $userInfo['mid'] eq 2 }
			<li><<&nbsp;&nbsp;个人信息管理
				<ul class="nav_child">
					<li>
						<a href="{$site_url}member/info.php">*我的个人信息</a>
					</li>
				</ul>
			</li>
			<li><<&nbsp;&nbsp;管理我的图书
				<ul class="nav_child">
					<li>
						<a href="{$site_url}member/reserved_books_list.php">*我的书籍订单</a>
					</li>
					<li><a href="{$site_url}member/reserve_book.php">*预定图书</a></li>
					<li>
						<a href="{$site_url}member/overtime_books_list.php">*图书催还</a>
					</li>
				</ul>
			</li>
			<li>
				<a href="{$site_url}member/sixin_list.php">
					<<&nbsp;&nbsp;我的私信
				</a>
			</li>
			{/if}
			<li><<&nbsp;&nbsp;系统操作
				<ul class="nav_child">
					{if $userInfo['mid'] eq 1 }
					<li><a href="{$site_url}admin/system_msg_list.php">*系统消息</a></li>
					{else}
					<li><a href="{$site_url}member/system_msg.php">*系统消息</a></li>
					{/if}
					<li><a href="{$site_url}resetpwd.php">*修改密码</a></li>
					<li><a href="{$site_url}logout.php">*退出</a></li>
				</ul>
			</li>
		</ul>
	</div>
